<script>
export default {
  globalData: {
    appsecret: "Y61szjr0G6cd4H254gzodswP",
    // rootUrl: window.location.origin,
    rootUrl: "http://school.jyt.cadj.cn",

    // rootUrl: 'http://192.168.101.249:8040',
    // rootUrl: 'http://192.168.0.116:8040',
    nodataImg: "/static/image/nodata.png",
    nodataImgCart: "/static/image/cart_nodata.png",
    imgRemote: "https://test.caidj.cn",
    sourceImage: "/static/image/goods_demo.jpeg",
    cartTag: "", //购物车徽标
    sourceShowStartPage: true, //溯源加载启动页
    tabIndex: 0,
    // appid:wxd1a8b83258c39658		//少东家小程序
    // appid:wxf8e6901dbc0c180a		//小程序
    // appid:wx4f24afa0c5d9be68		//小程序支付
  },
  onLaunch: function () {
    // uni.hideTabBar();
    //#ifdef MP-WEIXIN
    let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
    let url = extConfig.attr.host;
    this.globalData.rootUrl = url;
    //#endif
    uni.hideTabBar();
  },
  onShow: function () {
    uni.hideTabBar();
  },
  onHide: function () {},
  methods: {
    setTitle() {
      //#ifndef MP-WEIXIN
      uni.setNavigationBarTitle({
        title: uni.getStorageSync("title"),
      });
      //#endif
      uni.hideTabBar();
    },
  },
};
</script>

<style lang="scss">
@import "./static/iconfont.css";
@import "uview-ui/index.scss";

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-btw {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flex-middle {
  display: flex;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/deep/.uni-tabbar-border {
  background: none !important;
}

.nodata {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  // position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  color: #cccccc;
  font-size: 32rpx;
  width: 400rpx;

  image,
  img {
    width: 100%;
    height: 300rpx;
    margin-bottom: 54rpx;
  }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* #ifdef H5 */
body {
  // max-width: 600px;
  margin: 0;
  padding: 0;
}

/* #endif */
page {
  background: #f6f6f7;
}

.flex {
  display: flex;
}

.flex_row_center {
  justify-content: center;
}

.flex_col_center {
  align-items: center;
}

.flex_row_between {
  justify-content: space-between;
}

.flex_row_around {
  justify-content: space-around;
}

.wrap {
  flex-wrap: wrap;
}

.placehoder_class {
  font-size: 24rpx;
  color: #c0c0c0;
}

.status_bar {
  // #ifdef APP-PLUS
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  // #endif
  //#ifndef MP-WEIXIN
  height: var(--status-bar-height);
  // #endif
  background: #f6f6f7;
  width: 100%;
  z-index: 1000;
}

.text_right {
  text-align: right;
}

.text_center {
  text-align: center;
}

.red_font {
  color: red;
}

.gray_font {
  color: #ccc;
}

.dgreen {
  color: $dgreen;
}

.bold {
  font-weight: bold;
}

.red_tag {
  background: #e84b4b;
  border-radius: 6rpx;
  color: white;
  font-size: 16rpx;
  padding: 2rpx 12rpx;
  margin-right: 6rpx;
}

// .logo {
// 	width: 50rpx;
// 	height: 40rpx;

// }

.recommend_good {
  .title {
    font-weight: 700;
    font-size: 32rpx;
    // margin: 40rpx 0;
  }

  .all_good {
    flex-wrap: wrap;

    .sign_good {
      width: 48%;
    }

    .sign_good:nth-child(n + 3) {
      margin-top: 4%;
    }
  }
}

.border_bottom {
  border-bottom: 1px solid #e7e8e8;
}

.form_submit {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .button {
    // position: fixed;
    bottom: 182rpx;
    background: $dgreen;
    width: 576rpx;
    text-align: center;
    color: $white;
    border-radius: 50rpx;
    height: 88rpx;
    line-height: 88rpx;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  }
}

.one_ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column_start {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.column_evenly {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.row_between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.row_start {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
</style>
